package com.ruoyi.order.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.WxVhiceodrOeaiRcrMapper;
import com.ruoyi.order.domain.WxVhiceodrOeaiRcr;
import com.ruoyi.order.service.IWxVhiceodrOeaiRcrService;

/**
 * 订单工单记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-29
 */
@Service
public class WxVhiceodrOeaiRcrServiceImpl implements IWxVhiceodrOeaiRcrService
{
    @Autowired
    private WxVhiceodrOeaiRcrMapper wxVhiceodrRecordMapper;

    /**
     * 查询订单工单记录
     * 
     * @param id 订单工单记录主键
     * @return 订单工单记录
     */
    @Override
    public WxVhiceodrOeaiRcr selectWxVhiceodrRecordById(Long id)
    {
        return wxVhiceodrRecordMapper.selectWxVhiceodrRecordById(id);
    }

    /**
     * 查询订单工单记录列表
     * 
     * @param wxVhiceodrRecord 订单工单记录
     * @return 订单工单记录
     */
    @Override
    public List<WxVhiceodrOeaiRcr> selectWxVhiceodrRecordList(WxVhiceodrOeaiRcr wxVhiceodrRecord)
    {
        return wxVhiceodrRecordMapper.selectWxVhiceodrRecordList(wxVhiceodrRecord);
    }

    /**
     * 新增订单工单记录
     * 
     * @param wxVhiceodrRecord 订单工单记录
     * @return 结果
     */
    @Override
    public int insertWxVhiceodrRecord(WxVhiceodrOeaiRcr wxVhiceodrRecord)
    {
        wxVhiceodrRecord.setCreateTime(DateUtils.getNowDate());
        return wxVhiceodrRecordMapper.insertWxVhiceodrRecord(wxVhiceodrRecord);
    }

    /**
     * 修改订单工单记录
     * 
     * @param wxVhiceodrRecord 订单工单记录
     * @return 结果
     */
    @Override
    public int updateWxVhiceodrRecord(WxVhiceodrOeaiRcr wxVhiceodrRecord)
    {
        return wxVhiceodrRecordMapper.updateWxVhiceodrRecord(wxVhiceodrRecord);
    }

    /**
     * 批量删除订单工单记录
     * 
     * @param ids 需要删除的订单工单记录主键
     * @return 结果
     */
    @Override
    public int deleteWxVhiceodrRecordByIds(Long[] ids)
    {
        return wxVhiceodrRecordMapper.deleteWxVhiceodrRecordByIds(ids);
    }

    /**
     * 删除订单工单记录信息
     * 
     * @param id 订单工单记录主键
     * @return 结果
     */
    @Override
    public int deleteWxVhiceodrRecordById(Long id)
    {
        return wxVhiceodrRecordMapper.deleteWxVhiceodrRecordById(id);
    }
}
